from com.android.monkeyrunner import MonkeyRunner

file_ref = open('D://MonkeyRunnerhelp.txt','w')

print >> file_ref, MonkeyRunner.help()